# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=postgresql-shared_ispell
_projname=shared_ispell
pkgver=1.1.0_git20210423
_gitrev=be086277d4fde7fbb5830cecdcfb127732931f5f
pkgrel=1
pkgdesc="PostgreSQL shared ispell dictionary extension"
url="https://github.com/postgrespro/shared_ispell"
arch="all"
license="PostgreSQL"
makedepends="postgresql-dev"
install="$pkgname.post-install"
source="https://github.com/postgrespro/shared_ispell/archive/$_gitrev/$_projname-$_gitrev.tar.gz"
builddir="$srcdir/$_projname-$_gitrev"
options="!check"  # XXX: tests require running PostgreSQL

build() {
	make USE_PGXS=1
}

package() {
	depends="postgresql$(pg_config --major-version)"

	make install USE_PGXS=1 DESTDIR="$pkgdir"
}

sha512sums="
fabbd78c75f487d6c4930a2280c4edd243f727a41765dd63080d78000846a61a86b78dc9bd4a951e3e366ae9c1699862ded366d911ad09734873359564f832ea  shared_ispell-be086277d4fde7fbb5830cecdcfb127732931f5f.tar.gz
"
